package com.karry.yl.domain.baseinfo;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.karry.commons.base.SuperEntity;

import java.math.BigDecimal;

/**
 * 床位
 */
@TableName("bed")
public class Bed extends SuperEntity {
    public static final int STATUS_KX = 1;
    public static final int STATUS_YZ = 2;
    private String tag; //床位标签
    private String code; //床位号
    private int type;   // 床位类型： 1：普通床位 2：护理床位
    private BigDecimal price; //床位价格  元/月
    private int status;  // 状态 1:空闲 2:已住  3:在建 4.停用
    private String remark; //备注
    private String typeName; //类型名称
    @TableField(exist = false)
    private Long typeId;

    @JsonSerialize(using= ToStringSerializer.class)
    private Long roomId; //所属房间ID

    @TableField(exist = false)  //表示该属性不为数据库表字段，但又是必须使用的。
    private String roomName; //所属房间

    @JsonSerialize(using= ToStringSerializer.class)
    private Long buildingId;  //所属楼宇

    private String floor;  //所属楼层

    @TableField(exist = false)  //表示该属性不为数据库表字段，但又是必须使用的。
    private String buildingName; //所属楼宇
    private Long orgId; //所属机构

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Long getRoomId() {
        return roomId;
    }

    public void setRoomId(Long roomId) {
        this.roomId = roomId;
    }

    public Long getBuildingId() {
        return buildingId;
    }

    public void setBuildingId(Long buildingId) {
        this.buildingId = buildingId;
    }

    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public String getBuildingName() {
        return buildingName;
    }

    public void setBuildingName(String buildingName) {
        this.buildingName = buildingName;
    }

    public String getFloor() {
        return floor;
    }

    public void setFloor(String floor) {
        this.floor = floor;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }
}
